﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="cHead" ContentPlaceHolderID="cphHead" runat="server">
    <% this.Page.Title = (string)ViewData["PageTitle"]; %>
</asp:Content>

<asp:Content ID="cJScripts" ContentPlaceHolderID="cphJScripts" runat="server">
<script type="text/javascript">
    $(document).ready(function () {
        $("a.green").click(function () {
            $(this).addClass("loading");
            $('#inscription form:eq(0)').submit();
        });

        $("a.blue").click(function () {
            $('#inscription form')[0].reset();
        });
    });
</script>
</asp:Content>
<asp:Content ID="changePasswordContent" ContentPlaceHolderID="cphMainContent" runat="server">
<div id="inscription">
    <p><strong><%= ViewData["PasswordLength"] %></strong></p>
    <%= Html.ValidationSummary(ScoutNET.Resources.Master_Form_ErrorMessage)%>

    <% using (Html.BeginForm()) { %>
        <p>
            <label for="currentPassword"> <%= ScoutNET.Resources.Profil_Inscription_CurrentPassword %> :</label>
            <%= Html.Password("currentPassword", null, new { @class = "small" })%>
        </p>
        <p>
            <label for="password"> <%= ScoutNET.Resources.Profil_Inscription_Password %> :</label>
            <%= Html.Password("newPassword", null, new { @class = "small" })%>
        </p>
        <p>
            <label for="confirmPassword"> <%= ScoutNET.Resources.Profil_Inscription_ConfirmPassword %> :</label>
            <%= Html.Password("confirmPassword", null, new { @class = "small" })%>
        </p>
        <%= Html.AntiForgeryToken() %>
        <div class="blockButton">
        	<a class="mediumBtn green awesome" href="javascript:void(0);" title="<%= ScoutNET.Resources.Master_Button_Submit %>"><%= ScoutNET.Resources.Master_Button_Submit %></a>
            <a class="mediumBtn blue awesome" href="javascript:void(0);" title="<%= ScoutNET.Resources.Master_Button_Reset %>"><%= ScoutNET.Resources.Master_Button_Reset %></a>
        </div>
    <% } %>
</div>
</asp:Content>
